package com.jumi.microservice.stock.dto;

import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * @ClassName JmStockResponse
 * @Description
 * @Author Abel Yang
 * @Date 2020/8/19/019 14:56
 **/
public class StockGoodsResponse implements Serializable {

    private static final long serialVersionUID = 5803579572227997550L;

    @ApiModelProperty(value = "商品库存自增id")
    private Long id;
    @ApiModelProperty(value = "商品id")
    private Long goodsId;
    @ApiModelProperty(value = "商品编码")
    private String goodsCode;
    @ApiModelProperty(value = "商品名称")
    private String goodsName;
    @ApiModelProperty(value = "库存物料属性个数")
    private int materialCount;
    @ApiModelProperty(value = "商品分类id")
    private Long cateId;
    @ApiModelProperty(value = "分类名称")
    private String cateName;
    @ApiModelProperty(value = "商品类型:0-售卖商品;1-其他商品")
    private Byte goodsType;
    @ApiModelProperty(value = "保质期")
    private String expire;
    @ApiModelProperty(value = "供应商id")
    private Long supplierId;
    @ApiModelProperty(value = "供应商公司名称")
    private String supplierCompanyName;
    @ApiModelProperty(value = "商品状态:0-未禁用;1-已禁用")
    private Byte status;
    @ApiModelProperty(value = "单位id")
    private int unitId;
    @ApiModelProperty(value = "单位名称")
    private String unit;
    @ApiModelProperty(value = "入库数")
    private int inStockNum;
    @ApiModelProperty(value = "出库数")
    private int outStockNum;
    @ApiModelProperty(value = "实际库存")
    private int realStockNum;
    @ApiModelProperty(value = "可用库存")
    private int availableStockNum;
    @ApiModelProperty(value = "破损库存")
    private int damageStockNum;
    @ApiModelProperty(value = "占用库存")
    private int occupyNum;
    @ApiModelProperty(value = "仓库id")
    private Long warehouseId;
    @ApiModelProperty(value = "是否预警")
    private Boolean alarmed;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsCode() {
        return goodsCode;
    }

    public void setGoodsCode(String goodsCode) {
        this.goodsCode = goodsCode;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public int getMaterialCount() {
        return materialCount;
    }

    public void setMaterialCount(int materialCount) {
        this.materialCount = materialCount;
    }

    public Long getCateId() {
        return cateId;
    }

    public void setCateId(Long cateId) {
        this.cateId = cateId;
    }

    public String getCateName() {
        return cateName;
    }

    public void setCateName(String cateName) {
        this.cateName = cateName;
    }

    public Byte getGoodsType() {
        return goodsType;
    }

    public void setGoodsType(Byte goodsType) {
        this.goodsType = goodsType;
    }

    public String getExpire() {
        return expire;
    }

    public void setExpire(String expire) {
        this.expire = expire;
    }

    public Long getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }

    public String getSupplierCompanyName() {
        return supplierCompanyName;
    }

    public void setSupplierCompanyName(String supplierCompanyName) {
        this.supplierCompanyName = supplierCompanyName;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    public int getUnitId() {
        return unitId;
    }

    public void setUnitId(int unitId) {
        this.unitId = unitId;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public int getInStockNum() {
        return inStockNum;
    }

    public void setInStockNum(int inStockNum) {
        this.inStockNum = inStockNum;
    }

    public int getOutStockNum() {
        return outStockNum;
    }

    public void setOutStockNum(int outStockNum) {
        this.outStockNum = outStockNum;
    }

    public int getRealStockNum() {
        return realStockNum;
    }

    public void setRealStockNum(int realStockNum) {
        this.realStockNum = realStockNum;
    }

    public int getAvailableStockNum() {
        return availableStockNum;
    }

    public void setAvailableStockNum(int availableStockNum) {
        this.availableStockNum = availableStockNum;
    }

    public int getDamageStockNum() {
        return damageStockNum;
    }

    public void setDamageStockNum(int damageStockNum) {
        this.damageStockNum = damageStockNum;
    }

    public int getOccupyNum() {
        return occupyNum;
    }

    public void setOccupyNum(int occupyNum) {
        this.occupyNum = occupyNum;
    }

    public Long getWarehouseId() {
        return null != warehouseId ? warehouseId : 0L;
    }

    public void setWarehouseId(Long warehouseId) {
        this.warehouseId = warehouseId;
    }

    public Boolean getAlarmed() {
        return alarmed;
    }

    public void setAlarmed(Boolean alarmed) {
        this.alarmed = alarmed;
    }
}
